﻿using System;
using UnityDemo.DesignPatternSamples.Patterns;
using UnityDemo.Models;

namespace UnityDemo.DesignPatternSamples
{
    public class DesignPatternFeature : BaseFeatureDemo
    {
        public DesignPatternFeature()
        {
            ISample value = _sampleCollection[1].Value;
        }

        protected override void RegisterSamples()
        {
            _sampleCollection[1] = new Lazy<ISample>(() => new SingletonSample());
        }
    }
}